home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / lib.fmt / c / getusershell.man < prev    next >
Encoding:
Text File  |  1990-02-12  |  1.3 KB  |  67 lines

  1.  
  2.  
  3.  
  4. GETUSERSHELL          C Library Procedures           GETUSERSHELL
  5.  
  6.  
  7.  
  8. NNAAMMEE
  9.      getusershell, setusershell, endusershell - get legal user
  10.      shells
  11.  
  12. SSYYNNOOPPSSIISS
  13.      cchhaarr **ggeettuusseerrsshheellll(())
  14.  
  15.      sseettuusseerrsshheellll(())
  16.  
  17.      eenndduusseerrsshheellll(())
  18.  
  19. DDEESSCCRRIIPPTTIIOONN
  20.      _G_e_t_u_s_e_r_s_h_e_l_l returns a pointer to a legal user shell as
  21.      defined by the system manager in the file /_e_t_c/_s_h_e_l_l_s.  If
  22.      /_e_t_c/_s_h_e_l_l_s is unreadable or does not exist, _g_e_t_u_s_e_r_s_h_e_l_l
  23.      behaves as if /_b_i_n/_s_h and /_b_i_n/_c_s_h were listed in the file.
  24.  
  25.      _G_e_t_u_s_e_r_s_h_e_l_l reads the next line (opening the file if neces-
  26.      sary); _s_e_t_u_s_e_r_s_h_e_l_l rewinds the file; _e_n_d_u_s_e_r_s_h_e_l_l closes
  27.      it.
  28.  
  29. FFIILLEESS
  30.      /etc/shells
  31.  
  32. SSEEEE AALLSSOO
  33.      shells(5)
  34.  
  35. DDIIAAGGNNOOSSTTIICCSS
  36.      The routine _g_e_t_u_s_e_r_s_h_e_l_l returns a null pointer (0) on EOF.
  37.  
  38. BBUUGGSS
  39.      All information is contained in a static area so it must be
  40.      copied if it is to be saved.
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63. Sprite v1.0             December 1, 1986                        1
  64.  
  65.  
  66.  
  67.